import request from '@/utils/request'

// 查询惩戒查询列表
export function listPunishments(query) {
  return request({
    url: '/stuinfo/punishments/list',
    method: 'get',
    params: query
  })
}

// 查询惩戒查询详细
export function getPunishments(punishmentId) {
  return request({
    url: '/stuinfo/punishments/' + punishmentId,
    method: 'get'
  })
}

// 新增惩戒查询
export function addPunishments(data) {
  return request({
    url: '/stuinfo/punishments',
    method: 'post',
    data: data
  })
}

// 修改惩戒查询
export function updatePunishments(data) {
  return request({
    url: '/stuinfo/punishments',
    method: 'put',
    data: data
  })
}

// 删除惩戒查询
export function delPunishments(punishmentId) {
  return request({
    url: '/stuinfo/punishments/' + punishmentId,
    method: 'delete'
  })
}
